package firear.tvutils.ws.util;

import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.util.Log;

import firear.tvutils.ws.WSApplication;

public class CallMedlaPlayer {
    private static String TAG = "CallMedlaPlayer";

    public static void callMxPlayer(String url, Context ctx){

        Log.i(TAG, "begin:" + url);
        ComponentName componentName = new ComponentName("com.mxtech.videoplayer.pro", "com.mxtech.videoplayer.pro.ActivityScreen");
        Intent intent = new Intent();
        intent.setComponent(componentName);
        intent.setData(Uri.parse(url));
        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        ctx.startActivity(intent);
    }
}
